using System.Activities.Statements;
using Headsight.BPMN2WF.BPMN.Model;
using Headsight.BPMN2WF.BPMN.Schemas;

namespace Headsight.BPMN2WF.Transformation.Transformers
{
    /// <summary>
    /// <see cref="IBPMN2WFTransformation"/> mapping <see cref="tFlowElement"/>
    /// to <see cref="WriteLine"/>.
    /// </summary>
    public class BPMN2WFTransformationWriteLine : IBPMN2WFTransformation
    {
        public BPMNTransformationResult Transform(IBPMN2WFTransformationContext ctx, BPMNFlowNode flowNode)
        {
            var result = new WriteLine { Text = flowNode.TElement.name };
            return new BPMNTransformationResult(result, result, result);
        }
    }
}